﻿@model Loans.Web.Models.LoginModel

@{
    ViewBag.Title = "Login";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Logowanie</h2>

<section id="loginForm">
    @using (Html.BeginForm()) {
        @Html.ValidationSummary(true)

        <fieldset>
            <legend>Logowanie</legend>

            <div class="editor-label">
                @Html.LabelFor(model => model.UserName)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.UserName)
                @Html.ValidationMessageFor(model => model.UserName)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.Password)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Password)
                @Html.ValidationMessageFor(model => model.Password)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.RememberMe)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.RememberMe,new { @class = "checkbox" })
            </div>

            <p>
                <input type="submit" value="Zaloguj się" />
            </p>
        </fieldset>
    }
    <div>
        @Html.ActionLink("Powrót do początku", "Index")
    </div>
</section>
@* @section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
} *@
